/**
 *  @FileName: StringDemo.java
 *  @Last Modified Date: CharlW
 *  @Description: String类的一个访问器方法是length()方法，
 *  	它返回字符串对象包含的字符数
 */

public class StringDemo {
	public static void main(String[] args) {
		String palindrome = "Dot saw I was Tod";
		System.out.println(palindrome);
		int len = palindrome.length();
		System.out.println("String Length is : " + len);
		
		palindrome = "ChangeList";
		System.out.println(palindrome);
		len = palindrome.length();
		System.out.println("String Length is : " + len);
	}
}